package com.twang.stock.dto;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.util.List;

@Data
public class MatchWanZhuBeiDTO {
    @JSONField(name = "signup_start_time")
    private String signupStartTime;

    @JSONField(name = "signup_end_time")
    private String signupEndTime;

    @JSONField(name = "start_time")
    private String startTime;

    @JSONField(name = "valid_dates")
    private List<String> validDates;

    @JSONField(name = "post_start_time")
    private String postStartTime;

    @JSONField(name = "groups")
    private String groups;

    @JSONField(name = "calendar")
    private List<CalendarEventDTO> calendar; // 如果需要解析为结构化对象，可以改成 List<CalendarEventDTO>

    @JSONField(name = "id")
    private int id;

    @JSONField(name = "ctime")
    private String ctime;

    @JSONField(name = "match_status")
    private int matchStatus;

    @JSONField(name = "name")
    private String name;

    @JSONField(name = "awards_content")
    private String awardsContent;

    @JSONField(name = "viewer_price")
    private double viewerPrice;

    @JSONField(name = "player_price")
    private double playerPrice;

    @JSONField(name = "end_time")
    private String endTime;

    // Getters and Setters

    @Data
    public static class CalendarEventDTO {
        @JSONField(name = "title")
        private String title;

        @JSONField(name = "start")
        private String start;

        @JSONField(name = "end")
        private String end;

        @JSONField(name = "cellIndex")
        private int cellIndex;

        @JSONField(name = "isShow")
        private boolean isShow;

        @JSONField(name = "_id")
        private int id;

        // Getters and Setters
    }
}
